package com.exception;

import java.lang.reflect.Method;

import org.apache.log4j.Logger;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;

/**
 * 异步线程报错打印
 * @author arno 
 * @date 2018年5月28日 下午2:05:00
 * @desc
 */
public class MyAsyncExceptionHandler implements AsyncUncaughtExceptionHandler {
	
	private static Logger log = Logger.getLogger(MyAsyncExceptionHandler.class);
	  
    @Override  
    public void handleUncaughtException(Throwable throwable, Method method, Object... args) {  
        log.error("调用异步任务出错了, message : ", throwable);
    }

}